package com.qf.springcloud.service;

import com.qf.springcloud.callback.UserServiceFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: xiaobobo
 * @Date: 2019/3/7 15:28
 * @Description:
 */
@FeignClient(value = "shopping-user-server",fallbackFactory = UserServiceFallBack.class)
public interface UserService {

    @RequestMapping(value = "/getUserInfo",method = RequestMethod.GET)
    Object getUserInfo();
}
